package com.feng.nuike.huawei;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * @author feng
 * @decrition
 * @date 2022/2/170:09
 */
public class HJ4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String s = scanner.nextLine();
            if (s.length() < 8) {
                String result = addZero(s);
                System.out.println(result);
            } else if (s.length() == 8) {
                System.out.println(s);
            } else {
                while (s.length() >= 8) {
                    String substring = s.substring(0, 8);
                    System.out.println(substring);
                    s = s.substring(8, s.length());
                }
                if (s.length() > 0) {
                    String result = addZero(s);
                    System.out.println(result);
                }
            }
        }
    }

    private static String addZero(String s) {
        for (int i = s.length(); i < 8; i++) {
            s += "0";
        }
        return s;
    }
}
